/*
 * @Author: your name
 * @Date: 2021-04-14 13:34:25
 * @LastEditTime: 2021-04-15 16:02:20
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /flutter_demo/lib/pages/users/Register.dart
 */
import 'package:flutter/material.dart';

class RegisterFirstPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('注册'),
        ),
        body: Column(
          children: <Widget>[
            SizedBox(height: 40),
            ElevatedButton(
                onPressed: () {
                  // Navigator.push(
                  //     context,
                  //     MaterialPageRoute(
                  //         builder: (context) => RegisterSecondPage()));
                  Navigator.pushNamed(context, '/registerSecond');
                  // Navigator.of(context).pushReplacementNamed('/registerSecond');
                },
                child: Text('下一步'))
          ],
        ));
  }
}
